package cn.zyy.hotel.service;

import cn.zyy.hotel.entity.Employee;
import cn.zyy.hotel.vo.EmployeeVO;

import java.util.List;

public interface EmployeeService {

    //员工登录
    Employee login(String loginName, String loginPwd);
    Employee login(String loginName);

    //根据部门编号查询员工数量
    int getEmployeeCountByDeptId(Integer deptId);

    //根据角色编号查询员工数量
    int getEmployeeCountByRoleId(Integer roleId);

    //查询员工列表
    List<Employee> selectEmployeeList(EmployeeVO employeeVo);

    //添加员工
    int addEmployee(Employee employee);

    //修改员工
    int updateEmployee(Employee employee);

    //删除员工
    int deleteById(Integer id);

    //重置密码
    int resetPwd(Integer id);

    //保存员工角色关系
    boolean saveEmployeeRole(String roleIds,Integer empId);

    //修改密码
    int updatePwd(EmployeeVO employeeVO);

    //根据id查询员工
    Employee selectEmployeeById(Integer id);
}
